<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'AnswerController@index');
Route::get('answer/temps/{temp_id}', 'AnswerController@answerTemps')->name('answer.temps');
Route::post('answer/store', 'AnswerController@store')->name('answer.store');


Auth::routes();

Route::group(['middleware' => 'auth'], function () {
	Route::get('/admin', 'TempController@index');

	Route::resource('temps', 'TempController');

	Route::resource('questions', 'QuestionsController');

	Route::resource('options', 'OptionsController');

	Route::resource('results', 'ResultsController');

	Route::resource('users', 'UserController');

	Route::resource('sysComments', 'SysCommentController');
});